import * as Router from 'koa-router';
import { UserControl }  from '../../database/controller';
const user = new Router();

user.get('/users', UserControl.getUsers);
user.get('/user', UserControl.getUser);
user.post('/users', UserControl.createUser);
user.put('/users', UserControl.updateUser);
user.delete('/users', UserControl.deleteUser);

export { user };